package com.heartline.exception;

/**
 * Created by zhy on 2018/6/7.
 */
public enum Err {

    SYS_ERROR(-1, "系统忙,请稍候再试"),
    PARAM_ERROR(400, "参数错误");

    private int code;
    private String msg;


    private Err(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int code() {
        return code;
    }

    public String msg() {
        return msg;
    }
}
